﻿<%@ Page Language="C#"  MasterPageFile="~/Index.Master" enableSessionState="true" AutoEventWireup="true" CodeBehind="NetMonitor.aspx.cs" Inherits="Web.netmonitor.NetMonitor" %>

<%@ Register Src="~/controls/message.ascx" TagName="message" TagPrefix="uc" %>
<%@ Register Src="~/Controls/GVPageManager.ascx" TagPrefix="ui" TagName="gv" %>
<%@ Register Src="~/controls/ShortDate.ascx" TagName="ShortDate" TagPrefix="uc1" %>
<asp:content id="Content2" contentplaceholderid="head" runat="server">

</asp:content>
<asp:content id="Content1" contentplaceholderid="ContentPlaceHolder1" runat="server">
    <form id="form1" runat="server">
        <div class="content-box">
            <!-- Start Content Box -->
            <div class="content-box-header">
                <h3>监测日志查询</h3>
                
                <div class="clear">
                </div>
            </div>
            <!-- End .content-box-header -->
            <div class="content-box-content">
                <div class="tab-content default-tab" id="tab1">

                <div class="form1">
                        <p></p>
                <label>监测类型：</label>
                <asp:DropDownList ID="ddlMonitorType" runat="server" CssClass="small-input">
                <asp:ListItem Text="全部" Value="-1"></asp:ListItem>
                <asp:ListItem Text="CPU" Value="CPU"></asp:ListItem>
                <asp:ListItem Text="内存" Value="Memory"></asp:ListItem>
                <asp:ListItem Text="硬盘" Value="Storage"></asp:ListItem>
                <asp:ListItem Text="网络" Value="NET"></asp:ListItem>
                <asp:ListItem Text="关键进程" Value="Process"></asp:ListItem>
                </asp:DropDownList>

                                
                                &nbsp;<label>开始时间：</label><uc1:ShortDate ID="txtStartTime" runat="server" />

                                &nbsp;<label>结束时间：</label><uc1:ShortDate ID="txtEndTime" runat="server" />&nbsp;
                                <asp:Button ID="btn_save" CssClass="button" runat="server" 
                        Text="查询" onclick="btn_save_Click"  />
</div>


                    <uc:message ID="u_message" Visible="false" runat="server" />

                    <asp:GridView ID="GridView1" AutoGenerateColumns="False" runat="server" OnRowDataBound="ChangeRowBackColor" >
                        <Columns>
                            <asp:BoundField DataField="id" HeaderText="编号" SortExpression="id" />
                            <%--<asp:BoundField DataField="MoniterType" HeaderText="监测类型" />--%>
                            <asp:TemplateField HeaderText="监测类型">
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%#GetMonitorTypeName(Eval("MoniterType").ToString()) %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="MoniterTypeDetail" HeaderText="监测对象" />
                            <asp:BoundField DataField="MoniterValue" HeaderText="当前值" />
                            <asp:BoundField DataField="LogTime" HeaderText="记录时间" />
                            <asp:BoundField DataField="Describe" HeaderText="描述" />
                        </Columns>
                    </asp:GridView>
                    <ui:gv ID="GV" runat="server" />
                </div>
                <!-- End #tab1 -->
            </div>
            <!-- End .content-box-content -->
        </div>
    </form>
</asp:content>
